package com.example.springbootdisconf.callback;

import com.example.springbootdisconf.config.RedisConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SimpleDemoService {
    @Autowired
    RedisConfig redisConfig;

    public void change() {
        System.out.println("不好意思啊，更新以后真的可以为所欲为啊，现在host是：" + redisConfig.getHost() + "、port是：" + redisConfig.getPort());
    }
}
